# -*-python2.6.7-webpy0.3-*-
# -*-utf-8-*-
import web
import os

### db set
db = web.database(dbn='mysql', db='blog', user='root', pw='root')

web.config.debug = True

### template set
#admin_render = web.template.render('d:/pySpace/siunon/templates/admin_views/', cache=False)
admin_render = web.template.render('templates/admin_views/', cache=False)
render = web.template.render('templates/', cache=False)

config = web.storage(
    siteName = 'Siunon Blog',
    email = 'luvinchen@gmail.com',
    description = 'A Simple Python-WebPy Blog',
    author = 'chen',
    static = '/static',
)

web.template.Template.globals['config'] = config
